package com.pucong.gitee.database.backup.common.selfenum;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("服务器类型枚举类")
public enum ServiceFileType implements CommonEnum<Integer> {

    FTP(0, "ftp"),
    SFTP(1, "SFTP");

    @ApiModelProperty(value = "key",example = "0")
    private Integer key;

    @ApiModelProperty("描述")
    private String desc;

    ServiceFileType(Integer key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.key;
    }

    @Override
    public String getName() {
        return this.name();
    }
}